package com.mineplatform.mapper;

import javax.persistence.Column;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.mineplatform.domain.M_Mine;
import com.mineplatform.dto.rep.MineItemRep;

public class MineItemRepMapper {

	public static MineItemRep parse(M_Mine mine) {
		MineItemRep rep = new MineItemRep();

		rep.setMineid(mine.getId());
		rep.setCategoryid(mine.getMineCategoryId());
		rep.setCity(mine.getMineCity());
		rep.setCooperationintention(mine.getMineCooperationIntention());
		rep.setDegree(mine.getMineDegree());
		rep.setDescr(mine.getMineSubTitle());
		rep.setHot(mine.getMineHot());
		rep.setImgpath(mine.getMineImgPath());
		rep.setMaintype(mine.getMineMainType());
		rep.setMineraltype(mine.getMineMineralType());
		rep.setMiningmethod(mine.getMineMiningMethod());
		rep.setMiningright(mine.getMineMiningRight());
		rep.setMiningrightproperty(mine.getMineMiningRightProperty());
		rep.setName(mine.getMineName());
		rep.setTitle(mine.getMineTitle());

		rep.setOrder(mine.getMineSort());
		rep.setPosition(mine.getMinePosition());
		rep.setScale(mine.getMineScale());
		rep.setSquare(mine.getMineSquare());
		rep.setPubtime(mine.getMineCreateTime());
		rep.setProvinceid(mine.getProvinceId());

		rep.setPraisecount(mine.getPraiseCount());
		rep.setReplycount(mine.getReplyCount());
		
		rep.setPrice(mine.getMinePrice());
		rep.setCompany(mine.getCompanyName());

		rep.setMineimages(mine.getMineImages());
		
		rep.setCardno(mine.getCardNo());
		rep.setMineowner(mine.getMineOwner());
		rep.setMineralspecies(mine.getMineralSpecies());
		rep.setExpirydates(mine.getExpiryDates());
		rep.setGenetictype(mine.getGeneticType());

		return rep;
	}

}
